Skip to content

Conversation

@johntmyers
Copy link
Contributor

@johntmyers johntmyers commented Dec 10, 2025

This PR adds anonymous model usage telemetry collection. Notable changes:

  • We generate an InferenceEvent which tracks model and token counts after each DD batch is created. This provides higher fidelity during longer running jobs. In order to do this we need to snapshot the current token usage from the cumulative counts in the model registry.

  • The telemetry module is currently being vendored in. It's fully tested from its source which we can discuss offline if need be. It's a best-effort approach to reduce risk of interfering with any actual library usage.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

All contributors have signed the DCO ✍️ ✅
Posted by the DCO Assistant Lite bot.

@johntmyers johntmyers changed the title Initial telemetry impl chore: initial telemetry impl Dec 10, 2025
@johntmyers
Copy link
Contributor Author

I have read the DCO document and I hereby sign the DCO.

@nabinchha
Copy link
Contributor

The telemetry module is currently being vendored in. It's fully tested from its source which we can discuss offline if need be. It's a best-effort approach to reduce risk of interfering with any actual library usage.

for this, I'd recommend excluding telemetry.py from pytest coverage in .coveragerc

@johntmyers johntmyers marked this pull request as ready for review December 16, 2025 19:59
@kirit93 kirit93 added this to the December '25 milestone Dec 16, 2025
nabinchha
nabinchha previously approved these changes Dec 17, 2025
Copy link
Contributor

@nabinchha nabinchha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks @johntmyers!

johnnygreco
johnnygreco previously approved these changes Dec 17, 2025
Copy link
Contributor

@johnnygreco johnnygreco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @johntmyers 🙌

@johntmyers johntmyers dismissed stale reviews from johnnygreco and nabinchha via f6678c5 December 17, 2025 18:42
nabinchha
nabinchha previously approved these changes Dec 17, 2025
@johntmyers johntmyers merged commit 3693c2f into main Dec 18, 2025
15 checks passed
@johntmyers johntmyers deleted the johntmyers/chore/telemetry branch December 18, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants